package com.bsoft.gol.hcs.utils;

/**
 * 处理his异常工具类
 * Created by ChenJij on 2021/6/30.
 */
public class ExceptionMessageUtil {

    /**
     * @description: 当返回的错误码不是以下码时，统统返回-100
     * @author: chenJij@bsoft.com.cn
     * @date: 2021/6/16 20:51
     */
    public static String operateHisErrorMessage(String errorMessage){
        String [] errorMsgs = errorMessage.split("Exception:");
        if(errorMsgs.length>1){
            errorMessage = errorMsgs[1];
        }
        return errorMessage;
    }
}